package server;

import org.jgroups.JChannel;
import org.jgroups.Message;
import org.jgroups.ReceiverAdapter;



public class ServerMain extends TrsprtRcvrServer {
	
	static JChannel channel;
	static JChannel channel2;
	static ServerGui fenetre;
   
	
    public static void main(String[] args) throws Exception {
          new ServerMain().start();
    }
	
   
    private void start() throws Exception {
        
    	System.setProperty("jgroups.bind_addr", "127.0.0.1" );
     	channel = new JChannel();
        channel.setReceiver(this);
        channel.connect("ClusterInit");
        
        fenetre = new ServerGui();
        
    }

    


	public JChannel getChannel() {
		return channel;
	}


	public void setChannel(JChannel channel) {
		this.channel = channel;
	}

    
    

}
